package cs383.GradUnit;

class cRank implements Comparable<cRank>{
	public int playerIndex;
	public int handRank;
	public int chips;
	public cRank(int i, int r, int c){
		playerIndex = i;
		handRank = r;
		chips = c;
	}
	
	public int compareTo(cRank another) {
		
		if((this.handRank - another.handRank) == 0)
			return another.chips - this.chips;
		else
			return this.handRank - another.handRank;
	}
}
